#导包
from rest_framework import serializers

from myapp.models import User,DingTalkUser,Course,Cate,Flow,Score

class UserSer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class CourseSer(serializers.ModelSerializer):
    class Meta:
        model = Course
        fields = '__all__'
        depth = 1


class CateSer(serializers.ModelSerializer):
    class Meta:
        model = Cate
        fields = '__all__'


class FlowSer(serializers.ModelSerializer):
    class Meta:
        model = Flow
        fields = '__all__'
        depth = 1


class ScoreSer(serializers.ModelSerializer):
    class Meta:
        model = Score
        fields = '__all__'
        depth = 1




